package com.example.factory2Method;

/**
 * @version 1.0.0
 * @className: TestFactory2Method
 * @description:
 * @author: rosszhang
 * @date: 2022/5/13 11:15
 */
public class TestFactory2Method {
    public static void main(String[] args) {
        VehicleFactory vehicleFactory = new BroomFactory();
        Moveable moveable = vehicleFactory.create();
        moveable.run();
    }
}
